BTIsAlive = BTConditional:New()

local this = BTIsAlive
this.name = "IsAlive Task"

function this:New(hp)
	local o = {}
	setmetatable(o, self)
	self.__index = self
	o.hp = hp
	return o
end

function this:Check()
	if (self.hp >= 0) then
		self.executionStatus = BTTaskStatus.Success
		return BTTaskStatus.Success;
	else
		self.executionStatus = BTTaskStatus.Failure
		return BTTaskStatus.Success
	end
end